package cn.iocoder.yudao.module.bk.controller.admin.lwbookoutapply.vo;

import cn.iocoder.yudao.module.bk.dal.dataobject.lwbook.LwBookDO;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.util.*;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 书籍飘出 Response VO")
@Data
@ExcelIgnoreUnannotated
public class LwBookOutApplyRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15682")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "书籍id集合")
    @ExcelProperty("书籍id集合")
    private String lwBookIds;

    @Schema(description = "申请人id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1854")
    @ExcelProperty("申请人id")
    private Long applyUid;

    @Schema(description = "流程状态", example = "0")
    @ExcelProperty(value = "流程状态", converter = DictConvert.class)
    @DictFormat("bk_book_apply_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer processStatus;

    @Schema(description = "初审人", example = "21555")
    @ExcelProperty("初审人")
    private Long initialReviewUid;

    @Schema(description = "初审说明")
    @ExcelProperty("初审说明")
    private String initialReviewDes;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "申请人名称", example = "你说的对")
    @TableField(exist = false)
    private String applyName;

    @Schema(description = "初审人", example = "你说的对")
    @TableField(exist = false)
    private String initialReviewName;

    @Schema(description = "书籍Id集合", example = "你说的对")
    @TableField(exist = false)
    private List<String> lwBookIdList;

    @Schema(description = "书籍集合", example = "你说的对")
    @TableField(exist = false)
    private List<LwBookDO> books;

}
